home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 November / APC411-1.ISO / new_hot / mac / snak-sit.hqx / Snak 3.0.2 / Scripts / repeat < prev   
MacBinary  |  1998-06-25  |  1.1 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: repeat

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jun 25 20:41:15 1998, modified Thu Jun 25 20:41:15 1998, creator BBEdit, type ASCII, 507 bytes "repeat" , at 0x27b 410 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 72 65 70 65 61 74 | 00 00 00 00 00 00 00 00 |..repeat|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 01 fb 00 | 00 01 9a b1 b8 9e ab b1 |........|........|
|00000060| b8 9e ab 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4e d6 00 00 |........|....N...|
|00000080| 23 20 4b 65 6e 74 20 53 | 6f 72 65 6e 73 65 6e 20 |# Kent S|orensen |
|00000090| 30 36 2f 32 35 2f 39 38 | 20 3a 20 74 68 69 73 20 |06/25/98| : this |
|000000a0| 66 69 6c 65 20 69 73 20 | 66 72 6f 6d 20 74 68 65 |file is |from the|
|000000b0| 20 73 74 61 6e 64 61 72 | 64 20 64 69 73 74 72 69 | standar|d distri|
|000000c0| 62 75 74 69 6f 6e 20 6f | 66 20 69 72 63 49 49 0d |bution o|f ircII.|
|000000d0| 0d 23 20 55 73 65 20 61 | 20 73 69 6d 70 6c 79 20 |.# Use a| simply |
|000000e0| 77 68 69 6c 65 20 6c 6f | 6f 70 20 74 6f 20 72 65 |while lo|op to re|
|000000f0| 70 65 61 74 20 61 20 63 | 6f 6d 6d 61 6e 64 2e 0d |peat a c|ommand..|
|00000100| 61 6c 69 61 73 20 72 65 | 70 65 61 74 20 7b 0d 09 |alias re|peat {..|
|00000110| 40 20 72 65 70 2e 63 6e | 74 20 3d 20 5b 24 30 5d |@ rep.cn|t = [$0]|
|00000120| 0d 09 77 68 69 6c 65 20 | 28 20 72 65 70 2e 63 6e |..while |( rep.cn|
|00000130| 74 20 3e 20 30 20 29 0d | 09 7b 0d 09 09 24 31 2d |t > 0 ).|.{...$1-|
|00000140| 0d 09 09 40 72 65 70 2e | 63 6e 74 20 3d 20 72 65 |...@rep.|cnt = re|
|00000150| 70 2e 63 6e 74 20 2d 20 | 31 0d 09 7d 0d 09 5e 61 |p.cnt - |1..}..^a|
|00000160| 73 73 69 67 6e 20 2d 72 | 65 70 2e 63 6e 74 0d 7d |ssign -r|ep.cnt.}|
|00000170| 0d 0d 23 20 44 6f 20 74 | 68 65 20 73 61 6d 6e 20 |..# Do t|he samn |
|00000180| 74 68 69 6e 67 20 77 69 | 74 68 20 72 65 63 75 72 |thing wi|th recur|
|00000190| 73 69 6f 6e 20 20 53 65 | 65 2e 2e 20 53 45 54 20 |sion Se|e.. SET |
|000001a0| 4d 41 58 5f 52 45 43 55 | 52 53 49 4f 4e 53 0d 61 |MAX_RECU|RSIONS.a|
|000001b0| 6c 69 61 73 20 72 65 63 | 72 65 70 65 61 74 20 7b |lias rec|repeat {|
|000001c0| 0d 09 69 66 20 28 5b 24 | 30 5d 20 3e 20 30 29 0d |..if ([$|0] > 0).|
|000001d0| 09 7b 0d 09 09 24 31 2d | 0d 09 09 72 65 63 72 65 |.{...$1-|...recre|
|000001e0| 70 65 61 74 20 24 7b 5b | 24 30 5d 20 2d 31 7d 20 |peat ${[|$0] -1} |
|000001f0| 24 31 2d 0d 09 7d 0d 7d | 0d 09 0d 61 6c 69 61 73 |$1-..}.}|...alias|
|00000200| 20 74 65 73 74 20 7b 0d | 20 20 20 20 61 73 73 69 | test {.| assi|
|00000210| 67 6e 20 62 6c 75 65 2e | 31 20 6f 6e 65 0d 20 20 |gn blue.|1 one. |
|00000220| 20 20 61 73 73 69 67 6e | 20 62 6c 75 65 2e 32 20 | assign| blue.2 |
|00000230| 74 77 6f 20 0d 20 20 20 | 20 61 73 73 69 67 6e 20 |two . | assign |
|00000240| 62 6c 75 65 2e 33 20 74 | 68 72 65 65 0d 20 20 20 |blue.3 t|hree. |
|00000250| 20 66 6f 72 65 61 63 68 | 20 62 6c 75 65 20 69 69 | foreach| blue ii|
|00000260| 20 7b 20 65 63 68 6f 20 | 24 69 69 20 24 62 6c 75 | { echo |$ii $blu|
|00000270| 65 5b 24 69 69 5d 20 7d | 0d 7d 0d 00 00 00 00 00 |e[$ii] }|.}......|
|00000280| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000290| 73 69 6f 6e 73 2c 0d 20 | 2a 20 61 6e 64 20 73 65 |sions,. |* and se|
|000002a0| 6d 69 63 6f 6c 6f 6e 73 | 20 65 6e 64 20 65 78 70 |micolons| end exp|
|000002b0| 06 72 65 70 65 61 74 72 | 02 00 00 00 54 45 58 54 |.repeatr|....TEXT|
|000002c0| 52 2a 63 68 01 00 ff ff | ff ff 00 00 00 00 2f 37 |R*ch....|....../7|
|000002d0| 00 00 54 45 58 54 52 2a | 63 68 01 00 ff ff ff ff |..TEXTR*|ch......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 aa 60 47 5b 00 00 | 01 fb 00 00 01 9a 63 68 |...`G[..|......ch|
|00000300| 5f 68 61 6e 64 6c 65 72 | 28 29 20 72 6f 75 74 69 |_handler|() routi|
|00000310| 6e 65 20 77 65 65 64 73 | 20 6f 75 74 20 61 6e 79 |ne weeds| out any|
|00000320| 20 66 6f 72 20 63 6f 6d | 6d 61 6e 64 20 74 68 61 | for com|mand tha|
|00000330| 74 20 64 6f 65 73 6e 74 | 20 68 61 76 65 0d 20 2a |t doesnt| have. *|
|00000340| 20 20 74 77 6f 20 63 6f | 6d 6d 61 6e 73 2c 20 74 | two co|mmans, t|
|00000350| 68 61 74 20 63 68 65 63 | 6b 69 6e 67 20 66 6f 72 |hat chec|king for|
|00000360| 20 74 68 6f 73 65 20 32 | 20 63 6f 6d 6d 61 73 20 | those 2| commas |
|00000370| 69 73 20 61 20 77 61 73 | 74 65 2e 20 20 49 20 73 |is a was|te. I s|
|00000380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 02 | 00 04 00 c1 00 97 02 5b |........|.......[|
|000003b0| 03 0d 00 c1 00 97 02 5b | 03 0d b1 b8 66 6b 00 00 |.......[|....fk..|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000003d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000003e0| 00 00 00 46 03 56 99 80 | 2a 3c 00 00 00 1c 00 46 |...F.V..|*<.....F|
|000003f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000400| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000410| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+